package com.fruit.service.goods.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fruit.mapper.goods.GoodsMapper;
import com.fruit.pojo.goods.Goods;
import com.fruit.service.goods.GoodsManager;

@Service("goodsService")
public class GoodsService implements GoodsManager {
	
	@Autowired
	private GoodsMapper goodsMapper;

	@Override
	public Goods getGoodsDetail(Integer goodsId) {
		
		return goodsMapper.getGoodsDetail(goodsId);
	}

	@Override
	public Map<String, Object> getDefaultAddress(int userId) {

		return goodsMapper.getDefaultAddress(userId);
	}

	@Override
	public List<Map<String, Object>> getFruitLable(Map<String, Object> params) {
		
		return goodsMapper.getFruitLable(params);
	}

	@Override
	public List<Map<String, Object>> getPriceRange(Integer goodsId) {
		// TODO Auto-generated method stub
		return goodsMapper.getPriceRange(goodsId);
	}

	@Override
	public List<Map<String, Object>> getGoodsParameters(Integer goodsId) {
		// TODO Auto-generated method stub
		return goodsMapper.getGoodsParameters(goodsId);
	}
	

}
